package com.nju.edu.erp.model.vo.promotion;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PromotionVO {
    //一个稀疏表，用于前端传入后端
    //type1. 总经理可以针对不同级别（customerLevel）的用户制定促销策略（价格折让discount、赠送代金劵voucherAmount）
    //type2. 总经理可以制定特价包（组合商品pid降价discount）
    //type3. 总经理可以制定针对不同总价amountLevel的促销策略（赠送代金卷voucherAmount）
    private Integer strategyId;
    private Integer type;
    private Integer customerLevel;
    private BigDecimal discount;
    private BigDecimal voucherAmount;
    private String pid;
    private BigDecimal amountLevel;
}
/*
    以下为可能的输入示例
    promotion_sheet_one:
    strategy-id | customer-level | discount | voucher_amount
    1           | 3             | 0.99     | 1000
    2           | 4             | 0.98     | 5000
    promotion_sheet_two:
    strategy-id | pid                  | discount
    1           | 0000000000400000     | 0.99
    1           | 0000000000400001     | 0.99
    1           | 0000000000500000     | 0.98
    1           | 0000000000500001     | 0.99
    promotion_sheet_three:
    strategy-id | amount_level  | voucher_amount
    1           | 10000.00      | 100
    1           | 20000.00      | 200
    1           | 30000.00      | 350
    1           | 40000.00      | 400
*/